//
//  NSObject+YYModel_PACK.m
//  dyss_v2
//
//  Created by LXF on 16/2/2.
//  Copyright © 2016年 First Facility. All rights reserved.
//

#import "NSObject+YYModel_PACK.h"
#import "NSString+xx_json2xx.h"
#import "YYModel.h"

@implementation NSObject (YYModel_PACK)

- (NSString *)modelToJSONString{
    return [self yy_modelToJSONString];
}
- (NSDictionary *)modelToDictionary{
    return [self modelToJSONString].xx_toJSONObject;
}
+(instancetype)modelWithJSONString:(NSString *)JSONString{
    return [self yy_modelWithJSON:JSONString];
}
@end
